# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-jsonrpclib
_pkgname=jsonrpclib
pkgver=0.4.1
pkgrel=0
pkgdesc="A Python JSON-RPC over HTTP that mirrors xmlrpclib syntax"
url="https://github.com/tcalmant/jsonrpclib"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools"
source="$_pkgname-$pkgver.tar.gz::https://github.com/tcalmant/jsonrpclib/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces=py-jsonrpclib # Backwards compatibility
provides=py-jsonrpclib=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="9e0c06c016a9e117bb0b8e0fa1dd9e472ef2e280ef5efee51d491f339c8792477430390918fc46a2d8bfbbbe4baa9d4289f67775b879d2a49a35fc7bd1e8ecaa  jsonrpclib-0.4.1.tar.gz"
